home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Developer / demoCDEF ƒ / demoCDEF.h < prev    next >
Encoding:
Text File  |  1994-05-03  |  1.2 KB  |  54 lines  |  [TEXT/KAHL]

  1. //---------------------------------------------------------------------------------- 
  2. // File        : demoCDEF.h
  3. // Purpose    : Demo routine for various CDEF's and dialog routines
  4. // Author    : Jim Stout
  5. // Date        : November 2, 1991
  6. //----------------------------------------------------------------------------------
  7.  
  8. #define MAKELONG(type, data)    ((long)(((short)(type))) | (((long)((short)(data)) << 16)))
  9.  
  10. //  N.B. : The following structure is NOT the same as Apple's.
  11. //             It does match, for the first 2 elements.
  12.             
  13. typedef struct{
  14. MenuHandle    mHandle;                        // handle to the menu         
  15. int            mId;                            // resource id of menu        
  16. }popUpPrivateData,**popUpPrivateDataH;
  17.  
  18. // #defines for DITL items 
  19.  
  20. #define OK            1
  21. #define ENABLE        2
  22.  
  23. #define CB1            3    // Checkboxes        
  24. #define CB2            4
  25.  
  26. #define RB1            5    // Radio buttons    
  27. #define RB2            6
  28. #define RB3            7
  29.  
  30. #define TB1            8    // Tog buttons        
  31. #define TB2            9
  32. #define TB3            10
  33. #define TB4            11
  34.  
  35. #define FONTPOPUP    16
  36. #define FONTSIZE    17
  37. #define SPIN2         19
  38. #define SETBTN        22
  39.  
  40. #define EDITSIZE    28
  41. #define EDITSPIN    29
  42. #define PROGBAR        30
  43.  
  44. // character code defines 
  45. #ifndef _BACK
  46. #define _BACK        0x08
  47. #define _TAB    0x09
  48. #define _LEFT    0x1c
  49. #define _RIGHT    0x1d
  50. #define _PLUS    0x2b
  51. #define _MINUS    0x2d
  52. #define _ZERO    0x30
  53. #define _NINE    0x39
  54. #endif